<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>易道名片管理系统-customer search</title>
</head>
<body>
<div class="span-4">
&nbsp;
</div>
<form:form name="customer-search-form" method="post" commandName="customerSearchCriteria">
<div class="span-10 panel">
	<div class="span-10 panel-title last">
		客户搜索
	</div>
	<div class="span-10 last" style="color:red">
		<c:forEach items="${fieldErrors}" var="fieldError">
			<c:out value="${fieldError.field}"/> - <c:out value="${fieldError.defaultMessage}"/>
		</c:forEach>
	</div>
	<c:forEach items="${customerSearchCriteria.expressions}" var="expression" varStatus="rowCounter">
		<div class="span-3 field-label">
			<c:out value="${expression.propertyName}"/> 
		</div>
		<div class="span-7 last">
			<input 	type="hidden" 
					name="expressions[<c:out value="${rowCounter.count - 1}"/>].propertyName" 
					value="<c:out value="${expression.propertyName}"/>"/>
			<input 	type="text"
					name="expressions[<c:out value="${rowCounter.count - 1}"/>].values[0]" 
					value="<c:out value="${expression.values[0]}"/>"
					style="width:90%"/>
		</div>
	</c:forEach>
	<div class="span-10 last form-button-bar">
		<input id="login-btn" type="submit" value="search">
	</div>
</div>
</form:form>
<div class="span-5">
&nbsp;
</div>
</body>
</html>